IsChildNode Method

Returns if one Node object is a child of another Node object in the TreeView control.

Syntax

object.IsChildNode(TestNode, ParentNode, NodeDepth)

The IsChildNode Method syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
TestNode Required. A valid Node (MSComctlLib.Node) object.
ParentNode Required. A valid Node (MSComctlLib.Node) object.
NodeDepth Optional. A value or constant that specifies the type of child relationship, as described in settings.

Settings

The settings for IsChildNode Method are:

Setting Description
True TestNode is a child of ParentNode.
False TestNode has no relationship with ParentNode.

The settings for NodeDepth operator are:

Constant Setting Description
[First Branch] 0 None. Normal Icon display for the referenced Node
[All Branches] 1 Share Overlay Icon over normal Icon.

Remarks